#include<iostream>
#include<stdio.h> 
#include<cmath>
using namespace std;

int f(int m)
{if(m==1) return 0;
  int j=2;
 double  k= sqrt((double)m);
 while(j<=k&&m%j!=0)
   j++;
 if(j>k)   return  1;
 else return 0;
}



int main()
{int f(int m);
 int k;
 while(cin>>k)
 {if(k==0)  break;
  for(int i=1;i<=k/2;i=i+2)
  {if(f(i))   {if(f(k-i))      {cout<<k<<" "<<"="<<" "<<i<<" "<<"+"<<" "<<k-i<<endl;break;}
                    else continue;}
   else continue;
   }
  }  
 system("pause");
 return 0;
} 



